<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var g = prompt("输入你的工资");
        if (g <= 1500) {
            alert("3%");
        } else if (g >= 1500 && g <= 4500) {
            alert("10%");
        } else if (g >= 4500 && g <= 9000) {
            alert("20%");
        } else if (g >= 9000 && g <= 35, 000) {
            alert("25%");
        } else if (g >= 35, 000 && g <= 55, 000) {
            alert("30");
        } else if (g >= 55, 000 && g <= 80, 000) {
            alert("35");
        } else if (g >= 80, 000) {
            alert("40");
        }
    </script>
</head>

<body>

</body>

</html>